﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class AgentItineraryModel
    {
        public string SelectedBranchCode { get; set; }

        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        [Display(Name = "Select an agent")]
        public IEnumerable<SelectListItem> Agents { get; set; }

        public int SelectedAgentID { get; set; }

        public string SelectedAgentName { get; set; }

        public string SearchText { get; set; }

        public List<AgentItinerary> AgentItineraries { get; set; }

        public decimal ShortOverPlus { get; set; }

        public decimal ShortOverMinus { get; set; }
    }

    public class AgentItinerary
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        public string ContactNumbers { get; set; }

        [Display(Name = "Maturity Date")]
        public DateTime? PaymentEndDate { get; set; }

        [Display(Name = "Outstanding Balance")]
        public decimal OutstandingBalance { get; set; }

        [Display(Name = "Penalty Balance")]
        public decimal PenaltyBalance { get; set; }

        [Display(Name = "Daily Payment")]
        public decimal DailyPayment { get; set; }

        [Display(Name = "Weekly Payment")]
        public decimal WeeklyPayment { get; set; }

        [Display(Name = "Short / Over")]
        public decimal ShortOver { get; set; }

        [Display(Name = "Amount Paid")]
        public decimal AmountPaid { get; set; }

        [Display(Name = "Signature")]
        public string Signature { get; set; }

    }

}